package com.neu.commons.Utils;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

public class Cover {
    public static Map<String,String> CoverToMap(Map<String,String[]> par){
        Map<String,String>map=new HashMap<>();
        for (Map.Entry<String,String[]>entry:par.entrySet()){
            String name=entry.getKey();
            String[] values=entry.getValue();
            String value="";
            if (values!=null){
                value=Arrays.toString(values).replace("[","")
                        .replace("]","")
                        .replace(", ",",");

            }
            map.put(name,value);

        }
        return map;

    }
}